package com.ywjt.pinkelephant.dynamic.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.pinkelephant.R;
import com.ywjt.pinkelephant.dynamic.model.MenauModel;

import java.util.ArrayList;
import java.util.List;


public class PodCastDetailAdapter extends BaseQuickAdapter<MenauModel, BaseViewHolder> {


    public PodCastDetailAdapter( @Nullable List<MenauModel> data) {
        super(R.layout.item_podcast_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MenauModel item) {
        helper.setText(R.id.tvTitle,item.getTitle());
        ImageView ivImg=helper.getView(R.id.ivImg);
        ivImg.setImageResource(item.getImg());

    }
}